package yjh.service;

import org.apache.ibatis.annotations.Param;
import yjh.pojo.MistakesTopic;

import java.util.Date;
import java.util.List;

public interface MistakesTopicService {

    //增加错题
    public String addMistakesTopic(String topic);
    //删除错题
    public String deleteMistakesTopic(String topic);
    //修改错题
    public String updateMistakesTopic(String topic,int status);

    //查询整个错题库
    public List<MistakesTopic> selectMistakesTopicAll();

    // 根据重要度查询错题库
    public List<MistakesTopic> selectMistakesTopicByImportanc(int importanc);

    public List<MistakesTopic> selectMistakesTopicByDate(int date);

    public List<MistakesTopic> selectMistakesTopicByMistakescount(int count);

    public int selectMistakesTopicMax();

//    public Integer selectMistakesTopicByTopicId(Integer tid);

}
